import React from 'react'

import '../index.scss'

import PropTypes from 'prop-types';

export default class CaseEvaluation extends React.Component{
    constructor(props) {
        super(props);
        this.state = {

        }
    }
    static getDerivedStateFromProps(nextProps){
        let projectDetails = nextProps.projectDetails
        return {
            projectDetails
        }
    }
    render() {
        return (
            <div className='case_evaluation'>
                <div className='evaluation_top'>
                    <img className='evaluation_top_fl' src={this.state.projectDetails && this.state.projectDetails.img} alt=""/>
                    <div className='evaluation_top_fr'>
                        <h2>合作商评价</h2>
                        <p>{this.state.projectDetails && this.state.projectDetails.customer_evaluate }</p>
                    </div>
                </div>
                <div className='evaluation_info'>
                    <p>{this.state.projectDetails && this.state.projectDetails.project_desc}</p>
                </div>
            </div>
        );
    }
}

CaseEvaluation.propTypes = {
    projectDetails:PropTypes.object
}